CDISC Builderâ„¢  2.1 - Installation Test Scripts - %findrel
The following documentation contains test scripts and expected results for validating the CDISC Builder tool.  Do the following to verify proper installation:
  • The following instructions are accomplished through Windows Explorer.
  • Perform each test by performing the steps specified by the instructions.  
  • Evaluate the results of each step by comparing them with results described in the Documentation column. 
Script Description Documentation
findrel1.sas Test the condition where input data library is not specified.

Test the condition where specified library doesn't exist.

Instructions 1

findrel1.log

findrel2.sas Test the condition where specified datasets do not exist. Instructions 2

findrel2.log

findrel3.sas Test the condition where the specified output path does not exist.

Test the condition where the specified output file is invalid.

Instructions 3

findrel3.log

findrel4.sas Test generating output file. Instructions 4

findrel4.log
findrel4.html

findrel5a.sas

findrel5b.sas

Test searching in specified datasets.

Test searching where input datasets are not specified.

Instructions 5

findrel5a.log
findrel5b.log
findrel5b.html
findrel6a.sas

findrel6b.sas

Test searching with default search criteria.

Test the condition where user's new search criteria is specified.

Instructions 6

findrel6a.log
findrel6a.html

findrel6b.log
findrel6b.html

findrel7.sas  Test the condition where nothing has been found. Instructions 7

findrel7.log

findrel8.sas  Test the condition where the input library contains no dataset. Instructions 8

findrel8.log

findrel9.sas  Test the condition where the output html file has the current user name, date, and path  as part of the footnote. Instructions 9

findrel9.html


Instructions 1
The following instructions are accomplished through Windows Explorer.

  1. Navigate to the validation "saspgm" directory.

  2. Right mouse click on the findrel1.sas program and select "Batch Submit".

  3. Open the generated findrel1.log in a text editor.

  4. Verify that there are following error messages.

    ERROR: [findrel] is missing required parameter DATA.
    ERROR: [findrel] has an invalid library specified by DATA.

Instructions 2
The following instructions are accomplished through Windows Explorer.

  1. Navigate to the validation "saspgm" directory.

  2. Right mouse click on the findrel2.sas program and select "Batch Submit".

  3. Open the generated findrel2.log in a text editor.

  4. Verify that the following error message appears in the log file.

    ERROR: [findrel] The dataset demog does not exist in the library.

Instructions 3
The following instructions are accomplished through Windows Explorer.

  1. Navigate to the validation "saspgm" directory.

  2. Open the findrel3.sas program in a text editor.

  3. Modified the output path of the first %findrel statement to a wrong path.

  4. Modified the output path of the second %findrel statement to a valid path in your pc.

  5. Save and close the program.

  6. Right mouse click on the program and select "Batch Submit".

  7. Open the generated findrel3.log in a text editor.

  8. Verify that the following error messages appear in the log file.

    ERROR: [findrel] has an invalid path specified by OUTPUT: d:\invalid
    ERROR: [findrel] The parameter OUTPUT without extension .HTML

Instructions 4
The following instructions are accomplished through Windows Explorer.

  1. Navigate to the validation "saspgm" directory.

  2. Open the findrel4.sas program in a text editor.

  3. Modified the output path so it points to the current "saspgm" directory in your pc.

  4. Save and close the program.

  5. Right mouse click on the program and select "Batch Submit".

  6. Verify that an html file named findrel4.html is generated in the current "saspgm" directory.

Instructions 5
The following instructions are accomplished through Windows Explorer

  1. Navigate to the validation "saspgm" directory.

  2. Open the findrel5a.sas and findrel5b.sas program in a text editor.

  3. Replace the output path in these files with the path of the current "saspgm" directory in your pc.

  4. Save and close the programs.

  5. Right mouse click on the program findrel5a.sas and select "Batch Submit".

  6. Verify that it generates the findrel5a.html in the current "saspgm" directory.

  7. Open the findrel5a.html in Internet Explorer.

  8. Verify that there are two dataset listed in the html file.

  9. Close the current html file.

  10. Right mouse click on the program findrel5b.sas and select "Batch Submit".

  11. Verify that it generates the findrel5b.html.

  12. Open the findrel5b.html in Internet Explorer.

  13. Verify that all datasets in the input library have been listed in this file.

Instructions 6
The following instructions are accomplished through Windows Explorer.

  1. Navigate to the validation "saspgm" directory.

  2. Open the findrel6a.sas and findrel6b.sas program in a text editor.

  3. Replace the output path in these files with the path of the current "saspgm" directory in your pc.

  4. Save and close the programs.

  5. Right mouse click on the findrel6a.sas program and select "Batch Submit".

  6. Open the generated findrel6a.html in Internet Explorer.

  7. Verify that the macro found only one variable in the dataset co.

  8. Right mouse click on the findrel6b.sas program and select "Batch Submit".

  9. Open the generated findrel6b.html in Internet Explorer.

  10. Verify that the macro found two variables in the dataset co which matches the user's criterion.

Instructions 7
The following instructions are accomplished through Windows Explorer.

  1. Navigate to the validation "saspgm" directory.

  2. Replace the output path by the current path of "saspgm" directory.

  3. Right mouse click on the findrel7.sas program and select "Batch Submit".

  4. Verify that there is no html file generated.

  5. Open the findrel7.log in a text editor.

  6. Verify that there is no error message.

Instructions 8
The following instructions are accomplished through Windows Explorer.

  1. Navigate to the validation "saspgm" directory.

  2. Modify the libref "data" in the findrel8.sas program so it references to an empty directory.

  3. Right mouse click on the program and select "Batch Submit".

  4. Open the generated findrel8.log in a text editor.

  5. Verify that the following error message appears in the log file.

    ERROR: [findrel] The library data has no datasets.

Instructions 9
The following instructions are accomplished through Windows Explorer.

  1. Navigate to the validation "saspgm" directory.

  2. Modify the output path in the findrel9.sas program so it reflects the current "saspgm" directory.

  3. Right mouse click on the program and select "Batch Submit".

  4. Verify that it generates the findrel9.html and opens it up in Internet Explorer.

  5. Verify that your current windows account name, the current date and time, and the current "saspgm" path are displayed at the bottom of the html file.

For more information, please contact MXI .

 
     Meta-Xceed Inc. © 2009